package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderInfoService extends IService<OrderInfo> {


    // 生成订单
    OrderInfoVo trade(TradeVo tradeVo);

    // 提交订单
    String submitOrder(OrderInfoVo orderInfoVo);

    // 取消订单
    void canalOrder(String orderNo);

    void orderPaySuccess(String orderNo);



    //根据订单编号查询订单数据
    OrderInfo getOrderInfoByOrderNo(String orderNo);
    //查询订单分页列表
    IPage<OrderInfo> findUserPage(Long pageNum, Long pageSize);
}
